﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DBA.App.Dictionary
{
    public partial class frmSettings : Form
    {
        public frmSettings()
        {
            InitializeComponent();           
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void frmSettings_Load(object sender, EventArgs e)
        {
            //load data
            DataSet ds = XMLer.ds;
            lstDict.DataSource = ds.Tables["Dictionary"];
            lstDict.DisplayMember = "name";
            lstDict.ValueMember = "id";
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DataSet ds = XMLer.ds;
            ds.Clear();
        }
    }
}
